﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>

<asp:Content ID="indexTitle" ContentPlaceHolderID="TitleContent" runat="server">
    Home Page
</asp:Content>
<asp:Content ID="indexContent" ContentPlaceHolderID="MainContent" runat="server">
    Сейчас  <%= bool.Parse(ViewData["IsStarted"].ToString()) ? "работает" : "не работает"%><br /><br />
    <table>
        <tr>
            <td>
                <%=Html.ActionLink("Execute Job", "ExecuteJob", "Home") %>
            </td>
            <td>
                <%=Html.ActionLink("Interrupt Executed Job", "InterruptExecutedJob", "Home")%>
            </td>
        </tr>
        <tr>
            <td>
                <%=Html.ActionLink("Shedule Job", "ScheduleJob", "Home")%>
            </td>
            <td>
                <%=Html.ActionLink("Interrupt Scheduled Job", "InterruptScheduledJob", "Home")%>
            </td>
        </tr>
        <tr>
            <td>
            <%using (Html.BeginForm("UpdateGrowth", "Home"))
              {%>
              day &nbsp &nbsp 
              <%= Html.TextBox("day") %><br />
              month
              <%= Html.TextBox("month") %><br />
              <input type="submit" value="submit" />
            <%} %>
            </td>
            <td>
             <%=Html.ActionLink("Interrupt Grows Job", "InterruptUpdateGrowth", "Home")%>
            </td>
        </tr>
    </table>
</asp:Content>
